package org.dromara.system.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.*;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.system.domain.SysUserMachineAssociation;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 商户绑定机器关系业务对象 sys_user_machine_association
 *
 * @author Lion Li
 * @date 2025-07-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysUserMachineAssociation.class, reverseConvertGenerate = false)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SysUserMachineAssociationBo extends BaseEntity {

    /**
     *
     */
    private Long id;

    /**
     * 用户id
     */
    private Long userId;


    private Long machineId;


    /**
     * 绑定时间
     */
    @NotNull(message = "绑定时间不能为空", groups = {AddGroup.class, EditGroup.class})
    private Date bindTime;


    /**
     * 阶段返现存储备注
     */
    @NotNull(message = "阶段返现存储备注不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal dealCashBackSum;

    /**
     * 阶段返现计数
     */
    @NotBlank(message = "阶段返现计数不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer dealCashBackCount;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = {AddGroup.class, EditGroup.class})
    private String remark;


}
